package cn.edu.buaa.sei.jdat.io;

import java.io.File;

public class JarLoader {
	
	private String downloadDir = "/";
	
	public JarLoader() {
	}
	
	public File load(String url) {
		// step 1 : parse the given URL, and ensure that it's a URL direcet to Jar.
		// step 2 : download Jar into tempDir.
		// step 3 : return Jar, or wrap the local URL to a File object.
		
		// TODO
		return null;
	}
	
	public void setDownloadDir(String dir) {
		this.downloadDir = dir;
	}

}
